package com.lcf.system.feign;

import com.lcf.feign.service.system.SysDictFeignService;
import com.lcf.framework.utils.DictUtils;
import io.swagger.v3.oas.annotations.Hidden;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 描述：用户
 *
 * @author lcf
 * @since 2025/3/4 20:11
 */
@Hidden
@RestController
@RequestMapping("feign/dict")
public class SysDictFeignServiceImpl implements SysDictFeignService {
    @Resource
    private DictUtils dictUtils;

    @Override
    @GetMapping("typeCode")
    public Map<String, String> getByTypeCode(String typeCode) {
        return dictUtils.getByTypeCode(typeCode);
    }
}
